﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace SearchEngine.CMS.Client
{
    public partial class UcSearch : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnseach_Click(object sender, EventArgs e)
        {
            String QueryString = "";
            String chuoi = txtvalue.Text;
            if (Request.QueryString["Type"].ToString() != null)
            {
                    QueryString = Request.QueryString["Type"].ToString();
            }
            Response.Redirect("DetailSearch.aspx?Type="+QueryString + "&Key="+chuoi+"&Sort=0&Page=1");
        }
    }
}